Cleanup grant table code.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 23 Aug 2005 13:11:31 +0000 (13:11 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 23 Aug 2005 13:11:31 +0000 (13:11 +0000)
commit54a17fbc8346d20d3ad6c7628caebdc7f4b7af06
treeab58a1b7cbceebf42bb1a2a3181db571150721bc
parent6a141a1783fb261f6db46766b7f8c68d0a397a6a
Cleanup grant table code.
- keep count of free references
- let callbacks specify the number of references they need at least
- get rid of terminal reference
- simplify and more correct locking for callbacks
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
linux-2.6-xen-sparse/include/asm-xen/gnttab.h